package com.hamster.crmpre.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hamster.crmpre.mapper.CustomerMapper;
import com.hamster.crmpre.mapper.CustomerVipMapper;
import com.hamster.crmpre.pojo.Customer;
import com.hamster.crmpre.pojo.CustomerVip;
import com.hamster.crmpre.service.CustomerVipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Tarry
 * @create 2020/1/10 16:20
 */
@Service
public class CustomerVipServiceImpl implements CustomerVipService {
    @Autowired
    private CustomerVipMapper customerVipMapper;


    /**
     * 获取推荐人select下拉框   ，vip、合伙人
     * @return
     */
    @Override
    public List<CustomerVip> querySelect() {
        QueryWrapper<CustomerVip> customerVipQueryWrapper = new QueryWrapper<>();
        return customerVipMapper.selectList(customerVipQueryWrapper);

    }
}
